package es.bracana.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.factory.annotation.Configurable;


@Entity
@Table(name = "Clientes")
public class Clients {

	
	@Id
	@Column(name = "Dni")
	@NotEmpty
	@Length(max = 9)
	private String dni;


	@Column(name = "Nombre")
	@NotEmpty
	@Length(max = 100)
	private String name;
	
	@Column(name = "Apellidos")
	@NotEmpty
	@Length(max = 100)
	private String surname;	

	@Column(name = "Direccion")
	@NotEmpty
	@Length(max = 100)
	private String direccion;	
	
	public String getDni() {
		return dni;
	}

	public void setDni(String dni) {
		this.dni = dni;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDireccion() {
		return direccion;
	}

	public void setDireccion(String direccion) {
		this.direccion = direccion;
	}
	
	
	
}
